/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "组织架构", TableName = "sys_department")]
    public partial class sys_department : BaseEntity
    {
        /// <summary>
        ///
        /// </summary>
        [Key]
        [Display(Name = "DepartmentId")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid DepartmentId { get; set; }

        /// <summary>
        ///组织名称
        /// </summary>
        [Display(Name = "组织名称")]
        [MaxLength(200)]
        [Column(TypeName = "string(200)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string DepartmentName { get; set; }

        /// <summary>
        ///组织编号
        /// </summary>
        [Display(Name = "组织编号")]
        [MaxLength(50)]
        [Column(TypeName = "string(50)")]
        [Editable(true)]
        public string DepartmentCode { get; set; }

        /// <summary>
        ///上级组织
        /// </summary>
        [Display(Name = "上级组织")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        public Guid? ParentId { get; set; }

        /// <summary>
        ///组织类型
        /// </summary>
        [Display(Name = "组织类型")]
        [MaxLength(50)]
        [Column(TypeName = "string(50)")]
        [Editable(true)]
        public string DepartmentType { get; set; }

        /// <summary>
        ///是否可用
        /// </summary>
        [Display(Name = "是否可用")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Enable { get; set; }

        /// <summary>
        ///备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(1024)]
        [Column(TypeName = "string(1024)")]
        [Editable(true)]
        public string Remark { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "CreateID")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? CreateID { get; set; }

        /// <summary>
        ///创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(30)]
        [Column(TypeName = "string(30)")]
        [Editable(true)]
        public string Creator { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "DateTime")]
        [Editable(true)]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "ModifyID")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? ModifyID { get; set; }

        /// <summary>
        ///修改人
        /// </summary>
        [Display(Name = "修改人")]
        [MaxLength(30)]
        [Column(TypeName = "string(30)")]
        [Editable(true)]
        public string Modifier { get; set; }

        /// <summary>
        ///修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "DateTime")]
        [Editable(true)]
        public DateTime? ModifyDate { get; set; }


    }
}